package com.iyouqu.dsp.api.restful;

import javax.ws.rs.core.HttpHeaders;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.iyouqu.dsp.api.server.NettyFilter;

public abstract class BaseApi {
	public Logger log = LoggerFactory.getLogger(getClass());

	public String getIp(HttpHeaders headers) {
		return headers.getHeaderString(NettyFilter.HEADER_RESTEASY_CLIENT_IP);
	}

	
}
